{% if admin %} {% extends "admin/base.html" %}
{% else %} {% extends "base.html" %}
{% endif %}

{% block stylesheets %} {% endblock %}

{% block content %}
    <div class="jumbotron">
        <div class="container">
            <h2>Status</h2>
        </div>
    </div>
    <div class="container">
        <div class="row">
            <div class="col-md-3">
                <ul class="nav nav-pills flex-column">
                    <li class="nav-item">
                        {% if admin %}
                            <a class="nav-link rounded-0" href="/acm_chall/admin/cases">Judge Cases</a>
                        {% endif %}
                        {% block menu %}
                        {% endblock %}
                    </li>
                </ul>
            </div>
            <div class="col-md-9">
                {% for error in errors %}
                    <div class="alert alert-danger alert-dismissable" role="alert">
                        <span class="sr-only">Error:</span>
                        {{ error }}
                        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                            <span aria-hidden="true">×</span>
                        </button>
                    </div>
                {% endfor %}

                <div class="tab-content">
                    {% block acm_content %}
                    {% endblock %}
                </div>
            </div>
        </div>
    </div>
{% endblock %}